package com.woniuxy.dao;

import com.woniuxy.entity.Warehouse;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface WarehouseDao {

    List<Warehouse> findAll();

    Warehouse findOne(String id);

    int addOne(Warehouse warehouse);

    int updateOne(Warehouse warehouse);

    int deleteOne(String id);

    List<Warehouse> findByName(String name);

    int deleteSome(int[] id);

    Warehouse findByCode(String warehouse_id);

    Warehouse findByWname(String name);

    int addBatch(List<Warehouse> list);
}
